package com.li.designpattern.mediator;

public class Test {
	public static void main(String[] args) {
		ConcreteMediator mediator=new ConcreteMediator();
		User user1=new User1();
		User user2=new User2();
		
		user1.setMediaror(mediator);
		user2.setMediaror(mediator);
		mediator.setUser1(user1);
		mediator.setUser2(user2);
		
		user1.send("今天天气好吗？");
		user2.send("我感觉挺好的啊！");
	}
}
